s = input()
r = ""

for i in range(len(s)):
    r = s[i] + r
print(r)
